package com.hoyue.system.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author 空白
 * @version 1.0
 * Create by 2019/08/08 21:03
 */
@Controller
@RequestMapping("")
public class SysPageController {
    /**
     * 跳转到登录页面
     * @return "login"
     */
    @GetMapping("/login")
    public String login() {
        return "login";
    }

    /**
     * 跳转到注册页面
     * @return
     */
    @GetMapping("/register")
    public String register() {
        return "register";
    }

    /**
     * 跳转到互动页面
     * @return
     */
    @RequestMapping("interact")
    public String interact() {
        return "interact";
    }

    /**
     * 跳转到作业页面
     * @return
     */
    @RequestMapping("homework")
    public String homework() {
        return "Homework";
    }

    /**
     * 跳转到资料页面
     * @return
     */
    @RequestMapping("courseware")
    public String courseware() {
        return "courseware";
    }


    /**
     * 跳转到测试页面
     * @return
     */
    @RequestMapping("testpaper")
    public String testpaper() {
        return "testpaper";
    }


    /**
     * 跳转到考勤页面
     * @return
     */
    @RequestMapping("attendance")
    public String attendance() {
        return "attendance";
    }

    /**
     * 跳转到异常页面
     * @return
     */
    @RequestMapping("unauthorized")
    public String noPerms() {
        return "unauthorized";
    }

    @GetMapping("stu")
    public String Student() {
        return "member/member";
    }

}